package com.yl.immodule.util

import com.tencent.mmkv.MMKV

object MMkvSettingUtil {
    val PREFS_NAME: String = "im_ipc2.5_config"
    private val kv: MMKV by lazy {
        MMKV.mmkvWithID(PREFS_NAME, MMKV.MULTI_PROCESS_MODE)
    }
    var agc: Int
        get() = kv.decodeInt(
            "agc",
            0
        )
        set(choose) {
            kv.encode("agc", choose)
        }
    var aec: Int
        get() = kv.decodeInt(
            "aec",
            -1
        )
        set(choose) {
            kv.encode("aec", choose) }
    var ng: Int
        get() = kv.decodeInt(
                "ng",
                -1
        )
        set(choose) {
                kv.encode("ng", choose)
        }
}
